package com.mywang.weitravel.modules;

import android.os.Bundle;

import com.mywang.weitravel.R;
import com.mywang.weitravel.base.BaseActivity;
import com.mywang.weitravel.base.BaseContract;
import com.mywang.weitravel.modules.addfind.AddFindFragment;

public class SecondPageActivity extends BaseActivity {

    private String flag = "";
    private Bundle bundle;
    public static final String PAGE_FLAG = "page_flag";//页面标识
    public static final String PAGE_FORGET_PWD = "PAGE_FORGET_PWD";//忘记密码
    public static final String PAGE_ADD_FIND = "PAGE_ADD_FIND";//添加发现

    @Override
    protected int getActivityLayoutID() {
        return R.layout.activity_second_page;
    }

    @Override
    protected void initView() {
        bundle = getIntent().getExtras();
        flag = bundle.getString(PAGE_FLAG);

        if (flag.equals(PAGE_FORGET_PWD)) {
//            changeFragment(new PersonalDataFragment(), false, false);
        } else if (flag.equals(PAGE_ADD_FIND)) {
            changeFragment(new AddFindFragment(), false, false);
        }
    }

    @Override
    protected BaseContract.IPresenter initPresenter() {
        return null;
    }
}
